﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp7
{
    class Student:person
    {
        public string Major { get; set; }
        public string Grade { get; set; }
        
        
        public Student(int Id, string Name, char Sex, string Cardid, string Tel,string Major,string Grade)
            :base(Id,Name,Sex,Cardid,Tel) {

            this.Major = Major;
            this.Grade = Grade;


        }
        public void Test()
        {
            base.Speak();
            Console.WriteLine("专业{0}、年级{1}", this.Major, this.Grade);
        }
    }
}
